package mi3;


import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.repository.Deployment;

public class test2 {

    public static void main(String[] args) {
        /*创建流程引擎*/
        ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
        Deployment deployment = processEngine.getRepositoryService()// 获取部署相关Service
                .createDeployment()//创建部署
                .name("产品审核流程")//声明流程的名称
                .addClasspathResource("test1.bpmn20.xml")//加载资源文件
                .deploy();
        System.out.println("流程部署ID:" + deployment.getId());
        System.out.println("流程部署Name:" + deployment.getName());


    }





}